// 月卡管理接口
import request from '@/utils/request'
// 获取月卡信息列表
export function getCardListAPI(params) {
  return request({
    url: '/parking/card/list',
    params
  })
}
// 新增月卡
export function createCardAPI(data) {
  return request({
    url: '/parking/card',
    method: 'POST',
    data
  })
}
// 获取详细月卡信息
export function dataCardAPI(id) {
  return request({
    url: '/parking/card/detail/' + id

  })
}
// 编辑月卡
export function editCardDetailAPI(data) {
  return request({
    url: `/parking/card/edit`,
    method: 'PUT',
    data
  })
}
// 删除月卡
export function deleteCardDetailAPI(ids) {
  return request({
    url: `/parking/card/` + ids.join(','),
    method: 'DELETE'
  })
}
// 查看月卡详情 /parking/card/{Id}
export function lookCardDetailAPI(id, data) {
  return request({
    url: `/parking/card/` + id,
    method: 'GET',
    data
  })
}
// 月卡续费/parking/card/recharge
export function addmoneyAPI(data) {
  return request({
    url: '/parking/card/recharge',
    method: 'POST',
    data
  })
}
// header 参数
// query 参数用params传
// body  参数用data传
